            <%--
  Created by IntelliJ IDEA.
  User: guoyuting
  Date: 2022/12/14
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>Title</title>

</head>
<body>
<!--分页-->
<div class="pager">
    <div class="pager">
        <ul class="clearfix">
            <li>
                <c:if test="${pager.currentPage==1}">
                    <a>首页</a>
                    <a>上一页</a>
                </c:if>
                <c:if test="${pager.currentPage!=1}">
                    <a href="javascript:jump(1)">首页</a>
                    <a href="javascript:jump(${pager.currentPage-1})">上一页</a>
                </c:if>
            </li>

            <li class="current" >

                当前${pager.currentPage}/${pager.pageCount}页  共${pager.total}条</li>

            <li><c:if test="${pager.currentPage==pager.pageCount}">
                <a>下一页</a>
                <a>最后一页</a>
            </c:if>

                <c:if test="${pager.currentPage!=pager.pageCount}">
                    <a href="javascript:jump(${pager.currentPage+1})">下一页</a>
                    <a href="javascript:jump(${pager.pageCount})">最后一页</a>
                </c:if></li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    function jump(p) {
        $("#currentPage").val(p);
        $("#myform").submit();  // <form action="dopagesearch.jsp"
    }
</script>
</body>
</html>
